package pl.edu.agh.logview.webservice;


import java.util.Date;

import javax.xml.bind.annotation.XmlType;


@XmlType(name = "MessageBean")
public class MessageBeanImpl implements MessageBean {
	private String messageType;
    private String messageContent;
    private Date actionTime;
    private String fromAgent;
    private String toAgent;
    

    public MessageBeanImpl() {
    }

    public MessageBeanImpl(String _type, String _name, Date _time, String _fromAgent, String _toAgent){
    	this.messageType = _type;
    	this.setMessageContent(_name);
    	this.actionTime = _time;
    	this.fromAgent = _fromAgent;
    	this.toAgent = _toAgent;
    }

	public String getType() {
		return messageType;
	}


	public void setType(String type) {
		this.messageType = type;
	}


	public String getName() {
		return getMessageContent();
	}


	public void setName(String name) {
		this.setMessageContent(name);
	}


	public Date getTime() {
		return actionTime;
	}


	public void setTime(Date time) {
		this.actionTime = time;
	}


	public String getFromAgent() {
		return fromAgent;
	}


	public void setFromAgent(String fromAgent) {
		this.fromAgent = fromAgent;
	}


	public String getToAgent() {
		return toAgent;
	}


	public void setToAgent(String toAgent) {
		this.toAgent = toAgent;
	}

	public String getMessageContent() {
		return messageContent;
	}

	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}


}